package com.hualan.service.service.service;

import com.hualan.mapper.TeachersMapper;
import com.hualan.pojo.HotCourse;
import com.hualan.pojo.Teachers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TeachersServiceImpl implements TeachersService{
    @Autowired
    private TeachersMapper teachersMapper;

    public List<Teachers> teachersList() {
        return teachersMapper.teacherList();
    }


    public Teachers findById(Integer id) {
        return teachersMapper.findById(id);
    }


    public List<HotCourse> courseList(Integer tid) {
        return teachersMapper.courseList(tid);
    }
}
